import android
import time

app = android.Android()

app.makeToast("Buon Giorno!")

appTitle = "TestApp"
appMsg = "Performing relevant actions..."

app.dialogCreateSpinnerProgress(appTitle, appMsg)
app.dialogShow()

time.sleep(3)

app.dialogDismiss()
app.vibrate()

appMsg = "The meaning of life is:"
number = 42

app.dialogCreateAlert(appMsg)
app.dialogSetItems([number])
app.dialogSetPositiveButtonText('WTF!')
app.dialogShow()
resp = app.dialogGetResponse().result

app.makeToast("Yes!")
